import {reactive} from "vue";

function getAllUsers() {
    const users = reactive({
        //先按这几个key来做，后续再加
        station: [
            {
                id: '1',    //暂定字符串吧，后续再说
                name: 'A1护士站',//
                avatar: 'src/assets/img/pig.jpg',
                location: 'A区',//
                note: '欢迎咨询'
            }, {
                id: '2',
                name: 'A2护士站',
                avatar: 'src/assets/img/cat.jpg',
                location: 'B区',
                note: '欢迎咨询'
            }, {
                id: '3',
                name: 'A3护士站',
                avatar: 'src/assets/img/rabbit.jpg',
                location: 'C区',
                note: '欢迎咨询'
            },
        ],
        office: [
            {
                name: '皮肤科',
                doctors: [
                    {
                        id: '11',
                        name: '李医生',
                        avatar: 'src/assets/img/cat.jpg',
                        gender: '女',
                        location: '301',//删了
                        note: '有事请留言'
                    }, {
                        id: '12',
                        name: '崔医生',
                        avatar: 'src/assets/img/cat.jpg',
                        gender: '女',
                        location: '302',
                        note: '有事请留言'
                    }, {
                        id: '13',
                        name: '郭医生',
                        avatar: 'src/assets/img/cat.jpg',
                        gender: '男',
                        location: '303',
                        note: '有事请留言'
                    }
                ]
            }, {
                name: '心内科',
                doctors: [
                    {
                        id: '21',
                        name: '马医生',
                        avatar: 'src/assets/img/cat.jpg',
                        gender: '男',
                        location: '411',
                        note: '有事请留言'
                    }, {
                        id: '22',
                        name: '毛医生',
                        avatar: 'src/assets/img/cat.jpg',
                        gender: '男',
                        location: '412',
                        note: '有事请留言'
                    }, {
                        id: '23',
                        name: '余医生',
                        avatar: 'src/assets/img/cat.jpg',
                        gender: '男',
                        location: '413',
                        note: '有事请留言'
                    }
                ]
            }
        ]
    });
    return users;
}


function getAllGroups() {
    const groups = reactive([
        {
            id: 1,
            name: '群组一',
            owner: '11',
            time: '2022-01-27 12:00:00',
            notice: '晚上八点开会',
            members: [
                {
                    id: '11',
                    name: '李医生',
                    avatar: '...'//
                }, {
                    id: '12',
                    name: '崔医生',
                    avatar: '...'
                }
            ],
        },
        {
            id: 2,
            name: '群组二',
            owner: '12',
            time: '2022-01-28 12:00:00',
            notice: '晚上八点开会',
            members: [
                {
                    id: '11',
                    name: '李医生',
                    avatar: '...'
                }, {
                    id: '12',
                    name: '崔医生',
                    avatar: '...'
                }
            ]
        }
    ]);
    return groups;
}


export {
    getAllUsers,
    getAllGroups
}